package com.enba.rbacadmin.module.auth.controller.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

@ApiModel(value = "UpdatePasswordReq", description = "更新密码")
@Data
public class UpdatePasswordReq {

  @ApiModelProperty("用户ID")
  @NotNull(message = "用户ID不能为空")
  private Long userId;

  @ApiModelProperty("新密码")
  @NotBlank(message = "新密码不能为空")
  private String newPassword;
}
